<%-- 
    Document   : telaLogin
    Created on : 19/09/2011, 19:39:47
    Author     : Egberto
--%>

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>Template de Pagina JSF</title>
</head>
<body>
<f:view>
    <!-- Alterar os nomes -->
    <h:form id="loginForm">
		<h:message for="loginForm" errorStyle="color: red;" />
		<h:panelGrid columns="3">
			<h:outputLabel for="login" value="E-mail:" />
			<h:inputText id="loginUser" value="#{usuarioBean.user.email}"
				required="true" />
			<h:message for="loginUser" errorStyle="color: red;" />
			<h:outputLabel for="senhaInput" value="Senha:" />
			<h:inputSecret id="senhaInput" value="#{usuarioBean.user.senha}"
				required="true" />
			<h:message for="senhaInput" errorStyle="color: red;" />
		</h:panelGrid>
		<h:commandButton action="#{usuarioBean.autenticar}" value="Entrar"/>
	    <h:commandButton action="index" value="voltar" immediate="true"/>
	</h:form>
    
</f:view>
</body>
</html>
